package com.auth.manage.admin.infr.exception;

import com.auth.manage.base.exception.ErrorCode;

public enum AdminErrorCode implements ErrorCode {
    ADMIN_OR_OP_NOT_EXIST("ADMIN_OR_OP_NOT_EXIST", "管理员或OP用户不存在"),
    NOT_ADMIN_USER("NOT_ADMIN_USER", "需要管理员才能操作"),
    YOU_HAVE_NO_PERMISSION("YOU_HAVE_NO_PERMISSION", "你没有该权限"),

    ;
    private String code;
    private String msg;

    AdminErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
